package com.mhr.dao;

import com.mhr.pojo.Student;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author manster
 * @Date 2021/5/25
 **/
@Repository
public interface StudentMapper {

    //新增学生
    int insertStudent(Student student);
    //删除学生
    int deleteStudent(Integer id);
    //修改学生信息
    int updateStudent(Student student);
    //通过id得到学生信息
    Student getStudentById(Integer id);
    //通过姓名查询学生
    List<Student> getStudentByName(String name);
    //查询所有学生
    List<Student> listStudent();

}
